import QtQuick 1.1
import com.meego 1.0
import FSActors 1.0

Page {
    id: mainPage
    tools: commonTools


    FSActor {
        id: fsa
        ifld: "/home/user/MyDocs/DCIM"
        ofld: "/home/user/MyDocs/.dcim"
    }


    Flickable {
        id: container
        anchors.fill: parent

//        width: parent.width
//        height: parent.height

        contentWidth: col.width
        contentHeight: col.height

        flickableDirection: Flickable.VerticalFlick
        pressDelay: 100

        Column {
            id: col
            spacing: 10
            width: container.width


            Label {
                text: qsTr("Lists")
                anchors {left: parent.left;  topMargin: 20; leftMargin: 10}
            }



            Label {
                text: qsTr("Src:")
                anchors {left: parent.left;  topMargin: 20; leftMargin: 10}
            }

            TextField {
                id: iinp
                anchors {left: parent.left; right: parent.right; margins: 10}
                text: "/home/user/MyDocs/DCIM"
            }




            Label {
                text: qsTr("Dst:")
                anchors {left: parent.left;  topMargin: 20; leftMargin: 10}
            }

            TextField{
                id: oinp
                anchors {left: parent.left; right: parent.right; margins: 10}
                text: "/home/user/MyDocs/.dcim"
            }


            Button {
                text: qsTr("Set")
                anchors {left: parent.left; margins: 10}
                onClicked: {
                    fsa.ifld = iinp.text;
                    fsa.ofld = oinp.text;
                }
            }

            Button {
                text:  qsTr("Quit")
                anchors {right: parent.right; margins: 10}
                onClicked: Qt.quit()
            }
        }
    }

    ScrollDecorator {
        flickableItem: container
    }
}
